import request from "@/utils/request"

export interface CGInfoType {
    id:number,
    name:string,
    CG1Id?:number
    CG2Id?:number
}

export type CGListType =  CGInfoType[]


export const reqCG1List = ()=>{
    return request.get<null,CGListType>(`/admin/product/getCategory1`)
}
export const reqCG2List = (category1Id:number)=>{
    return request.get<null,CGListType>(`/admin/product/getCategory2/${category1Id}`)
}
export const reqCG3List = (category2Id:number)=>{
    return request.get<null,CGListType>(`/admin/product/getCategory3/${category2Id}`)
}